package com.zzxy.spring5.dao.impl;

import com.zzxy.spring5.dao.IMemberDao;
import org.springframework.jdbc.core.JdbcTemplate;

public class MemberDaoimpl implements IMemberDao {
    private JdbcTemplate jdbcTemplate;

    public JdbcTemplate getJdbcTemplate() {
        return jdbcTemplate;
    }

    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }

    @Override
    public void addMember() {
       jdbcTemplate.update("update set username = ? where id = ? ","zhangsan",2);
    }
}
